
from flask import Blueprint
from flask_restful import Api
from comment.utils.output import output_json

from shopping.resources.user.user_resource import ShoppingUser

# 创建蓝图
user_bp = Blueprint('users', __name__, url_prefix='/user')
# 创建蓝图中的资源api
user_api = Api(user_bp)

user_api.representation('application/json')(output_json)

user_api.add_resource(ShoppingUser, '/hello', endpoint='user')
